package com.yeebo.rpc.admin;

import com.yeebo.model.admin.SysResource;
import com.yeebo.vo.admin.SysResourcesTreeVO;

import java.util.List;

public interface SysResourceService {

    List<SysResourcesTreeVO> loadSysResourceManageList(Integer resourceType, String filterResourceName, Long parentMenuId);

    List<SysResourcesTreeVO> getMenuListByUserId(Long userId);

    void addMenu(String resourceCode, String resourceName, String resourceDesc, Long parentMenuId, String menuIcon, String menuUrl, Integer sequence);

    void addOperation(String resourceCode, String resourceName, String resourceDesc, Long parentMenuId, String menuIcon, String menuUrl, Integer sequence);

    void updateSysResource(Long sysResourceId, String resourceName, String resourceDesc, Long parentMenuId, String menuIcon, String menuUrl, Integer sequence);

    List<SysResourcesTreeVO> loadTopLevelMenuList();

    SysResource getResourceById(Long resourceId);

    void deleteSysResourceById(Long sysResourceId);

}
